<?php

require_once "core/application/models/musers/musers10.php";

class Musers11 extends Musers10 {
    
    private $_query;

    protected function sendExpressMessage($mailUniqueId, $toID, $sender, $mailTitle, $mailMessage, $express) {
        /**
         * @param int $mailUniqueId
         * @param int $toID
         * @param string $sender
         * @param string $mailTitle
         * @param string $mailMessage
         * @param int $express
         */
        DB::getInstance()->openConnectionToGS();
        $this->_query = "INSERT INTO  `mail` 
            (  `mailUniqueId` ,  `mailRecipientId` ,  `senderName` ,  `mailTitle` ,  `mailMessage` ,  `unread` ,  `attachedItemId` ,  `attachedKinahCount` ,  `express` ,  `recievedTime` ) 
            VALUES 
            ('$mailUniqueId',  '$toID',  '$sender',  '$mailTitle',  '$mailMessage',  '1',  '',  '',  '$express', NOW( ))";
        return DB::getInstance()->sql($this->_query);
        DB::getInstance()->closeConnection();
        unset($this->_query);
    }
}
?>
